package electricity.mapper;

import electricity.domain.UserRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


@Mapper
/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author yang
 * @since 2025-07-14
 */
public interface UserRoleMapper extends BaseMapper<UserRole> {
    Integer selectRoleIdByUserId(Integer userId);
    int deleteByUserId(Integer userId);
    int batchInsert(@Param("userId") Integer userId, @Param("roleIds") List<Integer> roleIds);
}
